<template>
  <section>
    <van-cell-group>
      <van-cell :key="item" data-index="index" v-for="item in conners" :title="item.name"></van-cell>
    </van-cell-group>
  </section>
</template>

<script>
import {Cell, CellGroup, Row, Col, Button} from "vant/es";
import common from "../../../../util/index";
export default {
  components:{
    [Button.name]: Button,
    [Row.name]: Row,
    [Col.name]: Col,
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup,
  },

  mounted:function(){
    window.apiready = async ()=>{
      try {
        const a = await this.apiGetFetch("/api/conners/get_list");
        this.conners = a;
      }catch (e) {
        console.log(e);
      }
    };
  },
  data(){
    return {
      conners:[],
    };
  },
  methods:{
    ...common.methods,
    ...common.requests,
  },
};
</script>
